<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>推广中心</title>
	    <link rel="stylesheet" href="__PUBLIC__/static/wx/style/iconfont.css" />
	    <link rel="stylesheet" href="__PUBLIC__/static/wx/style/new.css?1=1" />
	    <link rel="stylesheet" href="__PUBLIC__/static/wx/style/style.css" />
	    <script src="__INDEX__/js/mui.min.js"></script>
		<link href="__INDEX__/css/mui.min.css" rel="stylesheet" />
	</head>
    <style> 
        .mui-pull-left{
        	margin-top: -10px;
        }
    </style>
	<body>
		<header class="mui-bar header">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">推广中心</h1>
		</header>
		<div class="mui-content">
			<div class="tuig_top" style="padding-top:64px;">
				<div class="tuig_toux"><img src="{$Think.session.info_user.logo}"></div>
				<div class="tuig_nambox">
					<div class="tuig_nam">{$Think.session.info_user.nickname}</div>
					<div class="tuig_glj">余额：{$Think.session.info_user.balance}</div>
				</div>
			</div>
			<div class="tuig_box">
				<ul class="tuig_list clearfix">
					<li><a href="{:url('tglist')}">
						<div class="num"><em id="mems">0</em>人</div>
						<div>我的会员</div>
						</a>
					</li>
					<li class="right">
						<a href="{:url('yue_record')}">
						<div class="tip">余额</div>
						<div class="num" id="total_sr">0</div>
						<div>累积收入</div>
						</a>
					</li>
					<!--<li class="right">
						<a href="{:url('tglist2')}">
						<div class="num"><em id="agents">0</em>家</div>
						<div>我的商家</div>
						</a>
					</li>-->
				</ul>
				<ul class="tuig_list2 clearfix">
					<!--<li class="active">
						<a href="{:url('glj')}">
						<div class="tip">鼓励金</div>
						<div class="num" id="today_sr">0</div>
						<div>今日收入</div>
						</a>
					</li>-->
					<!--<li class="right">
						<a href="{:url('glj')}">
						<div class="tip">鼓励金</div>
						<div class="num" id="total_sr">0</div>
						<div>累积收入</div>
						</a>
					</li>-->
				</ul>
			</div>
			<div class="btnbox2"><a href="{:url('tixian')}"><button type="button" class="dzyhq_btn">提现</button></a></div>
			
		</div>
	<input type="hidden" id="page" value="1" />
	</body>
<script src="__PUBLIC__/static/js/jquery.min.js "></script>	
{include file="public/footer" /}
</html>

<script>
		get_data();
	function get_data(){
			$.ajax({
			type:"post",
			data:{
				user_id:"{$Think.session.info_user.id}"
			},
			url:"{:url('member/friends')}",
			success:function(data){	
				var data=data.data;

				$("#mems").text(data.mems?data.mems:0);

				$("#total_sr").text(data.total_sr?data.total_sr:0);

				
			}
		});
	}


</script>